package com.dms.modules.community.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 社区帖子实体类
 */
@Data
@TableName("community_post")
@ApiModel(value = "社区帖子", description = "社区帖子信息")
public class CommunityPost {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("帖子ID")
    private Long id;
    
    @ApiModelProperty("发帖用户ID")
    private Long userId;
    
    @ApiModelProperty("标题")
    private String title;
    
    @ApiModelProperty("内容")
    private String content;
    
    @ApiModelProperty("图片URL，JSON格式")
    private String images;
    
    @ApiModelProperty("浏览量")
    private Integer viewCount;
    
    @ApiModelProperty("点赞数")
    private Integer likeCount;
    
    @ApiModelProperty("评论数")
    private Integer commentCount;
    
    @ApiModelProperty("状态：0-草稿，1-已发布，2-已删除")
    private Integer status;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    
    @ApiModelProperty("逻辑删除标志")
    @TableLogic
    private Integer deleted;
} 